package com.javait.day8;

import java.util.Scanner;

public class Testdemo4 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入:");
        String stu=sc.next();
        String[] stu1=stu.split(",");
        Demo4 demo4 = new Demo4(stu1[0],stu1[1]);
        System.out.println(demo4.getName()+"..."+demo4.getAge());
    }
}
